package cn.bid.consumer.pojo;



import java.io.Serializable;
import java.util.Date;

//@ApiModel("用户信息")


public class User implements Serializable {


	private long id;
	//@Column(name="role")
	private long role;

	private String username;
	private String password;
	private String name;
	private String telephone;
	private String unit;

	private String landmark;
	private Date enterdate;


//	private Userrole userrole=new Userrole();

	public User() {
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getRole() {
		return role;
	}

	public void setRole(long role) {
		this.role = role;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getLandmark() {
		return landmark;
	}

	public void setLandmark(String landmark) {
		this.landmark = landmark;
	}

	public Date getEnterdate() {
		return enterdate;
	}

	public void setEnterdate(Date enterdate) {
		this.enterdate = enterdate;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", role=" + role +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", telephone='" + telephone + '\'' +
				", unit='" + unit + '\'' +
				", landmark='" + landmark + '\'' +
				", enterdate=" + enterdate +
				'}';
	}
}